package org.dromara.system.domain.bo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import org.dromara.system.domain.WbPowerCircle;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 电力圈增删改查业务对象 wb_power_circle
 *
 * @author Lion Li
 * @date 2024-05-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WbPowerCircle.class, reverseConvertGenerate = false)
public class WbPowerCircleBo extends BaseEntity {

    /**
     * 用户id（发布人id）
     */
    private Long userId;

    /**
     * id
     */
    private Long circleId;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 图片的url
     */
    private String pictureUrl;

    /**
     * 消息分类1、2、3、4
     */
    @NotBlank(message = "消息分类1、2、3、4不能为空", groups = { AddGroup.class, EditGroup.class })
    private String newsType;

    /**
     * 所在地
     */
    @NotBlank(message = "所在地不能为空", groups = { AddGroup.class, EditGroup.class })
    private String location;

    /**
     * 发布人电话
     */
    @NotBlank(message = "发布人电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 联系人
     */
    @NotBlank(message = "联系人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contacts;

    /**
     * 发布时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date releaseTime;

    /**
     * 发布者类型 0 个人 1企业
     */
    private String releaseType;

    /**
     * 标题
     */
    private String title;

    /**
     * 状态 -1 草稿 1正文
     */
    private  String status;

    /**
     * 审核意见
     */
    private String reviewComments;

}
